/*
 * Gui3.java
 *
 * Created on October 31, 2008, 2:24 PM
 */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


/**
 *
 * @author  kushwaham1
 */
public class Gui3 extends javax.swing.JFrame {

    /** Creates new form Gui3 */
    public Gui3() {
        initComponents();
        setTitle("Pre-Registration Window");
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jCheckBox1 = new javax.swing.JCheckBox();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setText("1. Password should not be at least 8 words long including numbers & alphabets.\n2. Phone number should be of 10 digit and should just be numbers.\n3. Accept the policies\n\nManish Messenger\n\nManish Messenger allows you to exchange instant messages and PC-to-PC voice calls with your online friends. You must be a registered Manish! user in order to use Manish! Messenger. Manish! Messenger establishes a connection to the Internet when it is active -- much like a browser does -- in order for communications to be received and transmitted.\n\nInformation Collection and Use Practices\n\n    * Manish! Messenger automatically checks for updates to Manish! software.\n    * You can establish a friend list within your Messenger and be added as a friend to others members' lists.\n    * By default your online status will be visible to other Messenger members who have you on their friends list and on web pages with an online presence indicator.\n          o You can choose to appear offline by signing in as Invisible.\n          o You can selectively appear online or offline to specific friends or groups of friends on Messenger using the Stealth Settings option.\n          o You can choose to always appear offline on web pages by editing your preferences in Messenger or Manish! Profiles:\n                + In Messenger, choose Messenger > Preferences > Privacy and uncheck the box to allow Manish! web sites to show when you are online.\n                + In Manish! Profiles, check the box to hide your online status from other users.\n    * You have certain choices about whether to add friends, be added as a friend, or ignore other members. Adding someone to your ignore list will also ignore PC-to-PC calls and related voice messages from that person.\n    * By default any other member using Messenger may send you PC-to-PC calls. You can change your preferences so that you only receive calls from members on your friends list.\n    * Manish! does not save your instant messages but we do make some functionality, such as archiving and the ability to print and save messages, available to members. As such, it is possible they may retain records of their instant messaging communications with you.\n          o By default, Manish! Messenger will archive your message history for the current session, until you sign out. When that that session ends, the message archive will be deleted.\n          o To change your archiving preferences in Messenger, choose Messenger > Preferences > Archive\n          o Changing your archiving preferences does not clear your current archive. For example, if you previously archived all messages indefinitely and change your preference to save messages until you sign out, then you will need to press the Clear Archive Now button for your previous archive to be cleared.\n          o Please be aware that even if you choose not to save your message history, members you correspond with may opt to use the functionality available in their version of Messenger to save the communications.\n    * Manish! does not save voice communications that go through our servers however the voice mails you record for other members are stored on our servers but we do not use the content of those voice mail messages.\n    * Messenger stores a PC-to-PC call history on your computer. You can review the PC-to-PC call history in Messenger by choosing Contacts > Voice Messages & Call History.\n    * Messenger gives you the opportunity to report instant messages you receive as spam. If you choose to report spam, Manish! will be sent information about the conversation including the Manish! ID of the member being reported, text of the conversation, and your Manish! ID.\n    * Messenger automatically identifies phone numbers and email addresses included in messages so you can quickly save them to your Manish! Address Book or take other actions, such as sending an email. This is a function carried out by the Messenger client on your computer and is not done by Manish! servers.\n    * When you invite someone to use Messenger using our form (as opposed to add someone as a friend to your friend list), you will need to provide that person's email address and a message (optional). Information collected on that form will only be used to send an email on your behalf and will not be used for any marketing purposes.\n\nInformation Sharing and Disclosure Practices\n\n    * By using Manish! Messenger, you may choose to make some of your personal information public or you may choose to share some of your personal information with others.\n    * If you post personal information online that is accessible to the public, you may receive unsolicited messages from other parties in return.\n    * Messenger sometimes uses a peer-to-peer connection during its operation, including times when you may be using it for instant messaging (text conversations), file sharing, PC-to-PC calling and webcam streaming. Peer-to-peer means that your computer connects directly to the other user's computer in the conversation without needing to go through Manish! servers. As such, your IP address is available to users with whom you share a peer-to-peer connection.\n\nPractices Regarding Your Ability to Update or Delete Information\n\n    * You can edit your Messenger settings and preferences through the Messenger menu.\n    * To review and delete your PC-to-PC call history or voice messages in Messenger choose Contacts > Voice Messages & Call History.\n");
        jScrollPane1.setViewportView(jTextArea1);

        jCheckBox1.setText("I accept these Policies");

        jButton1.setText("O.K.");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Registration(evt);
            }
        });

        jButton2.setText(" Cancel");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelPreRegistration(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton2)
                .addGap(189, 189, 189))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jCheckBox1)
                .addContainerGap())
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 292, Short.MAX_VALUE)
                .addGap(21, 21, 21))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(jCheckBox1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void Registration(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Registration
        // TODO add your handling code here:
        //JOptionPane.showMessageDialog(new javax.swing.JFrame(), "You Have to close Manually, we are having technical problems closing it");
        dispose();
        Gui7 dialog = new Gui7(new javax.swing.JFrame(), true);
        dialog.setVisible(true);       
        
    }//GEN-LAST:event_Registration

    private void CancelPreRegistration(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelPreRegistration
        // TODO add your handling code here:
        dispose();
        
    }//GEN-LAST:event_CancelPreRegistration

    /**
    * @param args the command line arguments
    */
    /**
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Gui3().setVisible(true);
            }
        });
    }
     */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables

}
